﻿using System;
using System.Linq;


class NFacMultipleKFact
{
    static void Main(string[] args)
    {
        int n = int.Parse(Console.ReadLine());
        int k = int.Parse(Console.ReadLine());
        int nk = k - n;

        int factN = 1;
        int factK = 1;
        int factNK = 1;

        if (k < n)
        {
            Console.WriteLine("K should be bigger than N, please enter new value!");
        }
        while (true)
        {
            if (n <= 1)
            {
                break;
            }
            factN *= n;
            n--;
        }
        while (true)
        {
            if (k <= 1)
            {
                break;
            }
            factK *= k;
            k--;
        }
        while(true)
        {
            if(nk<=1)
            {
                break;
            }
            factNK *= nk;
            nk--;
        }
        Console.WriteLine("N!*K!/(K-N)! = {0}", (factN*factK)/(factNK));
    }
}

